 function submitall() {
  var thedecis = confirm('Are you sure you want to keep these changes? Click OK to accept changes.');
  if(thedecis==true) {
   document.forms['genset'].action="parsesettings.php";
   document.forms['genset'].submit();
  }
 }

 function editpass() {
  var cond = confirm('Are you sure you want to change your password? Click OK to change.');
  if(cond==true) {
   var genOldPass = document.createElement("input");
   var genPass = document.createElement("input");
   var genConfPass = document.createElement("input");

   genOldPass.setAttribute("type", "password");
   genOldPass.setAttribute("name", "oldpwrd");
   genOldPass.setAttribute("value", "");

   genPass.setAttribute("type", "password");
   genPass.setAttribute("name", "newpwrd");
   genPass.setAttribute("value", "");

   genConfPass.setAttribute("type", "password");
   genConfPass.setAttribute("name", "confpwrd");
   genConfPass.setAttribute("value", "");

   document.getElementById('oldpasstxt').innerHTML='RECENT PASSWORD:';
   document.getElementById('oldpassfld').innerHTML='';
   document.getElementById('oldpassfld').appendChild(genOldPass);
   document.getElementById('passbtn').innerHTML='';
   document.getElementById('newpasstxt').innerHTML='NEW PASSWORD:';
   document.getElementById('newpassfld').appendChild(genPass);
   document.getElementById('confpasstxt').innerHTML='CONFIRM PASSWORD:';
   document.getElementById('confpassfld').appendChild(genConfPass);
  }
 }